package com.yixing.demo.service;


import com.yixing.demo.mapper.MessageMapper;
import com.yixing.demo.model.Message;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MessageService {
    @Resource
    MessageMapper messageMapper;


    public List<Message> getMessagesBySessionId(int sessionId) {
       return messageMapper.getMessagesBySessionId(sessionId);
    }
}
